﻿/*******************************************************************************
 * Copyright © 2016
 * 
 * Description: MVC快速开发平台  FROM http://xmwxgn.com
 *
*********************************************************************************/
using System.Data.Entity.ModelConfiguration;
using ZFine.Domain.Entity;

namespace ZFine.Mapping
{
    public class DbBackupMap : EntityTypeConfiguration<DbBackupEntity>
    {
        public DbBackupMap()
        {
            this.ToTable("Sys_DbBackup");
            this.HasKey(t => t.F_Id);

            Property(p => p.F_Id).HasMaxLength(50);
            Property(p => p.F_Description).HasMaxLength(500);
            Property(p => p.F_CreatorUserId).HasMaxLength(50);
            Property(p => p.F_LastModifyUserId).HasMaxLength(50);
            Property(p => p.F_DeleteUserId).HasMaxLength(50);
            Property(p => p.F_BackupType).HasMaxLength(50);
            Property(p => p.F_DbName).HasMaxLength(50);
            Property(p => p.F_FileName).HasMaxLength(50);
            Property(p => p.F_FileSize).HasMaxLength(50);
            Property(p => p.F_FilePath).HasMaxLength(500);
        }
    }
}
